<?php
/**
 * @name Admin_galleryModule
 * @version 2.0
 * @author Nguyen Van Phuong, <phuong.nguyen.itvn@gmail.com>
 * @copyright 2011 PN68 CMS
 */
class Admin_galleryModule extends AdminModule
{
	// path of folder gallery
	public $_folder = '/opt/lampp/htdocs/yii-cms/gallery';
	public $layout = 'application.modules.admin_gallery.views.layouts.gallery';
	public function init()
	{
		// import the module-level models and components
		$this->setImport(array(
			'admin_gallery.models.*',
			'admin_gallery.components.*',
		));
		parent::init();
	}

	public function beforeControllerAction($controller, $action)
	{
		if(parent::beforeControllerAction($controller, $action))
		{
			// this method is called before any module controller action is performed
			// you may place customized code here
			return true;
		}
		else
			return false;
	}
}
